<#if page.data??>
<div class="pages">
	<div class="pagination">
		<#if page.pageIndex gt 0><a class="first" href="javascript:void(0);" onclick="setPage('${pageUrl}',0)">|&lt;&lt;</a></#if>
		<#if page.pageIndex gt 0><a class="prev"  href="javascript:void(0);" onclick="setPage('${pageUrl}','${page.pageIndex - 1}')">&lt;</a></#if>
		<a class="current"   onclick="setPage('${pageUrl}','${page.pageIndex}')" href="javascript:void(0);">${page.pageIndex+1}</a>
		<#if page.pageTotal gt 0>
			<#if page.pageIndex lt (page.pageTotal - 1)><a class="next" href="javascript:void(0);" onclick="setPage('${pageUrl}','${page.pageIndex + 1}')" >&gt;</a></#if>
			<#if page.pageIndex lt (page.pageTotal - 1)><a class="last" href="javascript:void(0);" onclick="setPage('${pageUrl}','${page.pageTotal - 1}')">&gt;&gt;|</a></#if>
		</#if>
	</div>
	<div class="searchPage">
		<span class="page-sum">
			第${page.pageTotal}页|共${page.dbRowCount}条
		</span>
	</div>
</div>
</#if>
<script>
   function setPage(pageUrl,pageIndex){
   		if(pageUrl.indexOf('?') == -1){
   			pageUrl = pageUrl+"?1=1";
   		}
   		pageUrl += "&pageIndex="+pageIndex;
    	$.ajax({
    			url:pageUrl,
    			type : 'get',
    			success:function(result){
    				if(result){
						$('#dataTable').html(result);
					}
    			}
    		});
   }
</script>